<template>
	<div>
			<el-form-item v-if="$check_register_field('add','business_name','/business_user/view')" label="商家姓名" prop="business_name">
				<el-input id="business_name" v-model="form['business_name']" placeholder="请输入商家姓名" ></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','business_gender','/business_user/view')" label="商家性别" prop="business_gender">
				<el-select id="business_gender" v-model="form['business_gender']">
			<el-option v-for="o in list_business_gender" :key="o" :label="o" :value="o">
			</el-option>
		</el-select>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','business_phone','/business_user/view')" label="商家电话" prop="business_phone">
				<el-input id="business_phone" v-model="form['business_phone']" placeholder="请输入商家电话" ></el-input>
				</el-form-item>
	
	</div>
</template>

<script>
	import mixin from "@/mixins/component.js";

	export default {
		mixins: [mixin],
		props:{

			form:{
				type: Object,
				default: function(){
					return {
							"business_name":  '' ,
								"business_gender":  '' ,
								"business_phone":  '' ,
						}
				}
			},

		},
		data() {
			return {
				field: "business_user_id",
				url_add: "~/api/business_user/add?",
				url_set: "~/api/business_user/set?",
				url_upload: "~/api/business_user/upload?",

									list_business_gender: ['男','女'],
								rules: {
					"business_name": [    {required: true,message: '商家姓名不能为空'},  ],
					"business_gender": [    {required: true,message: '商家性别不能为空'},  ],
					"business_phone": [    {required: true,message: '商家电话不能为空'},  ],
				}

			}
		},
		methods: {
	
	
		
	
		
	
			},
		created() {
								}
	}
</script>
